/*
ID:luongho3
LANG:C++
TASK:kimbits
*/
#include <iostream>
#include <fstream>

using namespace std;
ifstream fin("kimbits.in");
ofstream fout("kimbits.out");
#define MAX_BIT 35
int size_of[MAX_BIT][MAX_BIT];
int s_bit[MAX_BIT];
int N,L;
unsigned int I;
int main() {
    fin >> N >> L >> I;
    int i,j;
    for (i=0;i<=N;++i) {
        size_of[0][i] = 1;
    }
    for (i=1;i<=N;++i) {
        size_of[i][1] = i + 1;
        for (j=2;j<=L;++j) {
            size_of[i][j] = size_of[i-1][j] + size_of[i-1][j-1];
        }
    }
    i = 0;
    int len, n_one;
    len = N;
    n_one = L;
    for (i=1;i<=N;++i) {
        if (n_one == 0) {
           for (;i<=N;++i) {
               s_bit[i] = 0;               
           }
           break;
        }
        if (I > size_of[len-1][n_one]) {
              s_bit[i] = 1;
              I -= size_of[len-1][n_one];
              n_one--;
        }
        else {
             s_bit[i] = 0;
        }
        len--;
    }
    for (i=1;i<=N;++i) {
        fout<<s_bit[i];
    }
    fout<<"\n";
    return 0;
}
